#! /bin/bash
export LANG=en_US.UTF-8

catalina_base=`ps aux|grep $*|grep -v grep|awk '{for(i=1;i<NF;++i){if(index($i,"-Dcatalina.home")==1)print $i}}'|sed 's/^.*=//g'`
echo $catalina_base
